package com.report.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.report.dto.response.InsightRes;
import com.report.dto.response.InsightWebRes;
import com.report.entity.Insight;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author summer
 * @since 2024/06/27 16:24:42
 */
@Mapper
public interface InsightMapper extends BaseMapper<Insight> {

    /**
     * 查询上一篇
     * @param id
     * @return
     */
    InsightWebRes findPreInsight(@Param("id") Integer id);

    /**
     * 查询下一篇
     * @param id
     * @return
     */
    InsightWebRes findNextInsight(@Param("id")Integer id);
}
